ContextSafelyExceptionHandler

class ContextSafelyExceptionHandler(handler: ExceptionHandler<Unit>) : CoroutineContext.Element

ExceptionHandler wrapper which was created to make possible to use handler across all coroutines calls

See also

Constructors

ContextSafelyExceptionHandler
Link copied to clipboard
common
fun ContextSafelyExceptionHandler(handler: ExceptionHandler<Unit>)

Functions

fold
Link copied to clipboard
common
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
get
Link copied to clipboard
common
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
minusKey
Link copied to clipboard
common
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
plus
Link copied to clipboard
common
open operator fun plus(context: CoroutineContext): CoroutineContext

Properties

handler
Link copied to clipboard
common
val handler: ExceptionHandler<Unit>
key
Link copied to clipboard
common
open override val key: CoroutineContext.Key<*>